SRCS := $(shell find src/ -type f -name '*.cpp')
OBJS := $(patsubst src/%.cpp,obj/%.o,$(SRCS))
LFLAGS := -Wall -pedantic
CFLAGS := -Wall -pedantic -I"include"
NAME := libatom.so

.PHONY: all
all: $(OBJS)
	g++ -shared $(LFLAGS) -o $(NAME) $<

obj/%.o: src/%.cpp include/%.h
	g++ $(CFLAGS) -c $< -o $@